<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	
	<title>Reverse Auction - JFS</title>
	<h:outputStylesheet library="CSS" name="stylesheet.css"  />
	<style>
		<ui:insert name="cssStyle" />
	</style>
</h:head>
<h:body>

	<div id="page">
	
		<div id="header">
			
			<div id="logo">
				<h:graphicImage library="IMGS" name="logo.png" />
			</div>
			
			<h:form rendered="#{loginMB.isAdmin()}">
				<ul id="menu">
						<li>
							<h:commandLink  action="#{lanceMB.listar}" value="Página Inicial" />
						</li>
						<li>
							<h:commandLink action="#{produtoMB.listar}" value="Produtos" />
						</li>
						<li><h:link value="Edital" outcome="/pages/edital/listaEdital" /></li>
						<li><h:link value="Usuários" outcome="/pages/usuario/listaUsuario" /></li>
						<li>
							<h:commandLink actionListener="#{loginMB.fazerLogout}" value="sair" />
						</li>
				</ul>
			</h:form>
			
			
			<h:form rendered="#{loginMB.isUsuarioComum()}">
				<ul id="menu">
						<li>
							<h:commandLink  action="#{lanceMB.listar}" value="Página Inicial" />
						</li>
						<li><h:link value="Edital" outcome="/pages/edital/listaEdital" /></li>
						<li>
							<h:commandLink actionListener="#{loginMB.fazerLogout}" value="sair" />
						</li>
				</ul>
			</h:form>
			
		</div>
		
		<div id="content">
			<ui:insert name="content" />
		</div>
		
		<div id="footer">
		</div>

	</div>
	
</h:body>
</html>